package com.disruptor.demo;


import com.lmax.disruptor.EventHandler;

/**
 * 消费处理器
 *
 * @创建者: 宋晓虎
 * @创建时间: 2025/11/2  19:38
 */
public class OrderEventHandler implements EventHandler<OrderEvent> {
    public void onEvent(OrderEvent orderEvent, long l, boolean b) throws Exception {
        System.out.println(orderEvent.getPrice()-System.currentTimeMillis());
    }
}

